package com.tianbao54.factory.simple;

public class Factory {

    public Person create (String person) {

        if (person.equals("american")) {
            return new American();
        } else {
            return new Chinese();
        }
    }
}
